package cn.tedu.tmall.front.mall.dao.repository;

import cn.tedu.tmall.front.mall.pojo.po.CartPO;
import cn.tedu.tmall.front.mall.pojo.vo.CartVO;

import java.util.List;

public interface ICartCacheRepository {

    void addCart(Long userId, CartPO cartPO);

    CartPO getGoodsByUserAndGoodsId(Long userId, Long goodsId);

    void modify(Long userId, Long goodsId, Integer goodsNum);

    void increase(Long userId, Long goodsId, Integer goodsNum);

    List<CartPO> getCartList(Long userId);

    void delete(Long userId, Long goodsId);

    void checked(Long userId, Long goodsId, Integer checked);
}
